import request from '@/utils/request'

// 查询能源成本核算列表
export function listNycbhs(query) {
  return request({
    url: '/nycbfx/nycbhs/list',
    method: 'get',
    params: query
  })
}

// 查询能源成本核算详细
export function getNycbhs(id) {
  return request({
    url: '/nycbfx/nycbhs/' + id,
    method: 'get'
  })
}

// 新增能源成本核算
export function addNycbhs(data) {
  return request({
    url: '/nycbfx/nycbhs',
    method: 'post',
    data: data
  })
}

// 修改能源成本核算
export function updateNycbhs(data) {
  return request({
    url: '/nycbfx/nycbhs',
    method: 'put',
    data: data
  })
}

// 删除能源成本核算
export function delNycbhs(id) {
  return request({
    url: '/nycbfx/nycbhs/' + id,
    method: 'delete'
  })
}
